/*    */ package openmyexplorer.util;
/*    */ import org.eclipse.jface.preference.IPreferenceStore;

import openmyexplorer.Activator;
/*    */ 
/*    */ public enum OperatingSystem
/*    */ {
/* 37 */   INSTANCE;
/*    */ 
/*    */   public static final String WINDOWS = "win32";
/*    */   public static final String LINUX = "linux";
/*    */   public static final String MACOSX = "macosx";
/*    */   private String os;
/*    */ 
/* 46 */   private OperatingSystem() { this.os = System.getProperty("osgi.os"); }
/*    */ 
/*    */ 
/*    */   public String getSystemBrowser()
/*    */   {
/* 53 */     String systemBrowser = null;
/* 54 */     if (isWindows()) {
/* 55 */       systemBrowser = "explorer";
/* 56 */     } else if (isLinux()) {
/* 57 */       IPreferenceStore store = Activator.getDefault()
/* 58 */         .getPreferenceStore();
/* 59 */       systemBrowser = store
/* 60 */         .getString("linuxFileManager");
/* 61 */       if (systemBrowser.equals("other"))
/* 62 */         systemBrowser = store
/* 63 */           .getString("linuxFileManagerPath");
/*    */     }
/* 65 */     else if (isMacOSX()) {
/* 66 */       systemBrowser = "open";
/*    */     }
/* 68 */     return systemBrowser;
/*    */   }
/*    */ 
/*    */   public String getOS() {
/* 72 */     return this.os;
/*    */   }
/*    */ 
/*    */   public boolean isWindows() {
/* 76 */     return "win32".equalsIgnoreCase(this.os);
/*    */   }
/*    */ 
/*    */   public boolean isMacOSX() {
/* 80 */     return "macosx".equalsIgnoreCase(this.os);
/*    */   }
/*    */ 
/*    */   public boolean isLinux() {
/* 84 */     return "linux".equalsIgnoreCase(this.os);
/*    */   }
/*    */ }

/* Location:           F:\Eclipse2020\eclipse\dropins\OpenExplorer_1.5.0.v201108051513.jar
 * Qualified Name:     openexplorer.util.OperatingSystem
 * JD-Core Version:    0.6.2
 */